home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / inn-1.4-l / inn-1 / inn-1.4-linux-0.1 / bash-patches / bash-1.12-linux.diff < prev    next >
Text File  |  1993-05-01  |  7KB  |  219 lines

  1. diff -rc orig/bash-1.12/Makefile bash-1.12/Makefile
  2. *** orig/bash-1.12/Makefile    Sat Jan 18 14:43:12 1992
  3. --- bash-1.12/Makefile    Fri Apr 30 21:55:22 1993
  4. ***************
  5. *** 10,21 ****
  6.   #
  7.   # If you haven't read README, now might be a good time.
  8.   
  9. ! DESTDIR = /usr/gnu/bin
  10.   MAKE    = make
  11.   RM      = rm -f
  12.   SHELL   = /bin/sh
  13. ! GAWK     = awk
  14. ! # GAWK     = gawk
  15.   
  16.   CPPNAME = /lib/cpp
  17.   CPP     = $(CPPNAME) `$(CPPMAGIC) $(GETCPPSYMS) $(CPPNAME)` -P
  18. --- 10,22 ----
  19.   #
  20.   # If you haven't read README, now might be a good time.
  21.   
  22. ! CC      = gcc
  23. ! DESTDIR = /bin
  24.   MAKE    = make
  25.   RM      = rm -f
  26.   SHELL   = /bin/sh
  27. ! # GAWK     = awk
  28. ! GAWK     = gawk
  29.   
  30.   CPPNAME = /lib/cpp
  31.   CPP     = $(CPPNAME) `$(CPPMAGIC) $(GETCPPSYMS) $(CPPNAME)` -P
  32. diff -rc orig/bash-1.12/builtins/getopt.c bash-1.12/builtins/getopt.c
  33. *** orig/bash-1.12/builtins/getopt.c    Sat Jan 18 14:51:50 1992
  34. --- bash-1.12/builtins/getopt.c    Sat May  1 15:41:01 1993
  35. ***************
  36. *** 272,278 ****
  37.   int
  38.   getopt (argc, argv, optstring)
  39.        int argc;
  40. !      char **argv;
  41.        CONST char *optstring;
  42.   {
  43.     optarg = 0;
  44. --- 272,278 ----
  45.   int
  46.   getopt (argc, argv, optstring)
  47.        int argc;
  48. !      char * CONST *argv;
  49.        CONST char *optstring;
  50.   {
  51.     optarg = 0;
  52. diff -rc orig/bash-1.12/builtins/getopt.h bash-1.12/builtins/getopt.h
  53. *** orig/bash-1.12/builtins/getopt.h    Sun Jul  7 15:02:45 1991
  54. --- bash-1.12/builtins/getopt.h    Sat May  1 15:41:27 1993
  55. ***************
  56. *** 92,98 ****
  57.   extern int option_index;
  58.   
  59.   #ifdef __STDC__
  60. ! int getopt (int argc, char **argv, const char *shortopts);
  61.   int getopt_long (int argc, char **argv, const char *shortopts,
  62.            const struct option *longopts, int *longind);
  63.   int getopt_long_only (int argc, char **argv, const char *shortopts,
  64. --- 92,98 ----
  65.   extern int option_index;
  66.   
  67.   #ifdef __STDC__
  68. ! int getopt (int argc, char * const *argv, const char *shortopts);
  69.   int getopt_long (int argc, char **argv, const char *shortopts,
  70.            const struct option *longopts, int *longind);
  71.   int getopt_long_only (int argc, char **argv, const char *shortopts,
  72. diff -rc orig/bash-1.12/cpp-Makefile bash-1.12/cpp-Makefile
  73. *** orig/bash-1.12/cpp-Makefile    Sat Jan 25 21:16:31 1992
  74. --- bash-1.12/cpp-Makefile    Sat May  1 15:41:45 1993
  75. ***************
  76. *** 192,199 ****
  77.   SYSTEM_FLAGS = $(LINEBUF) $(VPRINTF) $(UNISTD) $(GROUPS) $(RESOURCE) \
  78.          $(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR) \
  79.          -D$(MACHINE) -D$(OS)
  80. ! DEBUG_FLAGS = $(PROFILE_FLAGS) -g
  81. ! LDFLAGS    = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS)
  82.   CFLAGS    = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS)
  83.   CPPFLAGS= -I$(LIBSRC)
  84.   
  85. --- 192,199 ----
  86.   SYSTEM_FLAGS = $(LINEBUF) $(VPRINTF) $(UNISTD) $(GROUPS) $(RESOURCE) \
  87.          $(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR) \
  88.          -D$(MACHINE) -D$(OS)
  89. ! DEBUG_FLAGS = $(PROFILE_FLAGS) -O2
  90. ! LDFLAGS    = -static $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS)
  91.   CFLAGS    = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS)
  92.   CPPFLAGS= -I$(LIBSRC)
  93.   
  94. ***************
  95. *** 253,259 ****
  96.   #endif /* NotYet */
  97.   
  98.   /**/# The default primary and secondary prompts.
  99. ! PPROMPT = '"${PROGRAM}\\$$ "'
  100.   SPROMPT = '"> "'
  101.   
  102.   #if defined (MAINTAINER)
  103. --- 253,259 ----
  104.   #endif /* NotYet */
  105.   
  106.   /**/# The default primary and secondary prompts.
  107. ! PPROMPT = '"\\$$ "'
  108.   SPROMPT = '"> "'
  109.   
  110.   #if defined (MAINTAINER)
  111. diff -rc orig/bash-1.12/jobs.c bash-1.12/jobs.c
  112. *** orig/bash-1.12/jobs.c    Fri Jan 17 16:36:11 1992
  113. --- bash-1.12/jobs.c    Sat May  1 15:00:03 1993
  114. ***************
  115. *** 104,110 ****
  116. --- 104,112 ----
  117.   extern int errno;
  118.   extern int interactive, asynchronous_notification;
  119.   extern char *shell_name;
  120. + #ifndef __linux__
  121.   extern char *sys_siglist[];
  122. + #endif
  123.   
  124.   /* The array of known jobs. */
  125.   JOB **jobs = (JOB **)NULL;
  126. ***************
  127. *** 1251,1256 ****
  128. --- 1253,1263 ----
  129.         sigset_t set;
  130.   
  131.         sigemptyset (&set);
  132. +       if (!interactive)
  133. +     {
  134. +       sigaddset(&set, SIGINT);    
  135. +       sigaddset(&set, SIGQUIT);    
  136. +     }
  137.         sigsuspend (&set);
  138.   #else /* SCO Unix */
  139.         struct sigaction act, oact;
  140. diff -rc orig/bash-1.12/machines.h bash-1.12/machines.h
  141. *** orig/bash-1.12/machines.h    Fri Jan 17 16:42:24 1992
  142. --- bash-1.12/machines.h    Sat May  1 15:49:29 1993
  143. ***************
  144. *** 362,367 ****
  145. --- 362,399 ----
  146.   
  147.   /* **************************************************************** */
  148.   /*                                                                  */
  149. + /*                       Linus Torvald's Linux                      */
  150. + /*                                                                  */
  151. + /* **************************************************************** */
  152. + /* i386 class machine running Linux 0.99.9 */
  153. + #  if !defined (done386) && defined (__linux__)
  154. + #    define done386
  155. + #    define M_MACHINE "i386"
  156. + #    define M_OS Linux
  157. + #    define HAVE_GCC
  158. + #    define HAVE_FIXED_INCLUDES
  159. + #    define REQUIRED_LIBRARIES
  160. + #    define HAVE_SYS_SIGLIST
  161. + #    undef USE_GNU_MALLOC
  162. + #    define HAVE_GETWD
  163. + #    define HAVE_SETLINEBUF
  164. + #    define HAVE_VPRINTF
  165. + #    define HAVE_GETGROUPS
  166. + #    define SYSDEP_CFLAGS -DSTDC_HEADERS -D__USE_BSD_SIGNAL
  167. + #    define SYSDEP_LDFLAGS
  168. + #    define HAVE_STRERROR
  169. + #    define VOID_SIGHANDLER
  170. + #    define SEARCH_LIB_NEEDS_SPACE
  171. + #    define HAVE_RESOURCE
  172. + #    define HAVE_GETCWD
  173. + #    define HAVE_WAIT_H
  174. + #    define HAVE_UNISTD_H
  175. + #    define HAVE_DUP2
  176. + #  endif /* __linux__ */
  177. + /* **************************************************************** */
  178. + /*                                                                  */
  179.   /*                       Sequent Machines                           */
  180.   /*                                                                  */
  181.   /* **************************************************************** */
  182. diff -rc orig/bash-1.12/nojobs.c bash-1.12/nojobs.c
  183. *** orig/bash-1.12/nojobs.c    Mon Jan 20 23:27:03 1992
  184. --- bash-1.12/nojobs.c    Fri Apr 30 21:37:08 1993
  185. ***************
  186. *** 54,60 ****
  187.   #  define siginterrupt(sig, code)
  188.   #endif /* USG */
  189.   
  190. ! #if defned (_POSIX_VERSION)
  191.   #  define WAITPID(pid, statusp, options) waitpid (pid, statusp, options)
  192.   #else
  193.   #  define WAITPID(pid, statusp, options) wait (statusp)
  194. --- 54,60 ----
  195.   #  define siginterrupt(sig, code)
  196.   #endif /* USG */
  197.   
  198. ! #if defined (_POSIX_VERSION)
  199.   #  define WAITPID(pid, statusp, options) waitpid (pid, statusp, options)
  200.   #else
  201.   #  define WAITPID(pid, statusp, options) wait (statusp)
  202. diff -rc orig/bash-1.12/support/getcppsyms.c bash-1.12/support/getcppsyms.c
  203. *** orig/bash-1.12/support/getcppsyms.c    Thu Jan  9 03:33:05 1992
  204. --- bash-1.12/support/getcppsyms.c    Fri Apr 30 21:55:07 1993
  205. ***************
  206. *** 8,13 ****
  207. --- 8,16 ----
  208.   #include <stdio.h>
  209.   main ()
  210.   {
  211. + #if defined (__linux__)
  212. +   printf (" -D__linux__");
  213. + #endif /* __linux__ */
  214.   #if defined (CMU)
  215.     printf (" -DCMU");
  216.   #endif /* CMU */
  217.